<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>JSP</title>
    </head>
    <body>
        <h1>JSP : Java Server Pages</h1>

        <!-- JSP脚本 ( JSP Scriptlet ) -->
        <%
            for( int i = 0 ; i < 10 ; i++ ){
                System.out.println( i );
                out.println( "<p>" + i + "</p>");
            }
        %>
    </body>
</html>